{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/rlsigman/Dropbox/Upload/Table11.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Sep 2017, 14:29:40
{txt}
{com}. ssc inst kappa2
{txt}checking {hilite:kappa2} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc inst krippalpha
{txt}checking {hilite:krippalpha} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. **Calculate Cohen's Kappa Statistic
. *The "combined" statistics reported in the output are the ones reported in Table 11.
. *For the weighted versions (w) and (w2), the statistics in column labeled "K" are the ones reported in Table 11.
. 
. 
. keep country_id historical_date year coder_id v2clacjust
{txt}
{com}. drop if v2clacjust == .
{txt}(182,681 observations deleted)

{com}.   reshape wide v2clacjust, i(country_id historical_date year) j(coder)
{txt}(note: j = 19 20 72 84 185 186 192 193 194 196 197 205 234 237 246 251 258 259 265 267 269 271 272 277 280 281 292 294 296 297 298 302 305 307 309 312 316 318 321 334 344 349 352 353 373 377 378 382 387 393 400 409 415 421 423 426 428 429 438 450 456 459 467 473 474 479 489 491 493 495 497 509 510 511 516 518 521 522 530 534 536 537 539 541 543 544 546 547 552 555 561 562 565 566 567 569 570 581 588 589 596 603 604 607 608 609 615 616 620 622 625 626 639 648 658 660 662 664 668 672 675 676 677 688 689 695 697 701 702 703 704 711 713 714 715 716 720 721 722 726 731 736 741 750 751 759 760 766 771 778 779 780 781 782 792 794 797 799 800 801 804 807 810 812 813 816 819 820 822 824 830 832 833 834 838 843 844 846 848 849 853 862 864 870 871 874 876 879 880 881 882 886 887 895 897 898 905 909 910 913 914 921 924 927 931 933 939 940 941 942 944 950 958 959 963 964 965 968 969 976 980 981 987 988 990 991 994 995 996 1000 1003 1005 1014 1015 1018 1021 1022 1025 1026 1029 1030 1031 1043 1045 1057 1060 1061 1062 1063 1064 1067 1068 1070 1071 1073 1077 1078 1080 1085 1090 1096 1097 1099 1102 1104 1108 1115 1117 1118 1120 1121 1127 1128 1135 1137 1138 1146 1171 1175 1176 1177 1179 1180 1181 1182 1183 1185 1186 1189 1192 1193 1194 1196 1201 1202 1207 1213 1215 1217 1218 1220 1226 1234 1236 1247 1248 1249 1252 1253 1254 1255 1258 1259 1260 1261 1264 1266 1268 1271 1273 1276 1277 1281 1283 1284 1287 1289 1295 1301 1302 1304 1305 1307 1308 1312 1313 1321 1324 1326 1334 1346 1348 1349 1351 1352 1355 1356 1357 1358 1359 1360 1361 1363 1364 1368 1370 1372 1378 1379 1384 1386 1387 1390 1392 1397 1399 1400 1401 1404 1407 1409 1411 1415 1416 1418 1421 1423 1424 1428 1429 1430 1435 1438 1440 1444 1453 1454 1455 1458 1459 1465 1469 1471 1472 1473 1474 1475 1478 1479 1480 1484 1486 1487 1488 1491 1494 1495 1496 1498 1500 1504 1508 1511 1512 1513 1517 1519 1520 1523 1524 1526 1527 1528 1529 1531 1534 1540 1545 1547 1548 1549 1552 1554 1556 1564 1565 1566 1568 1573 1577 1578 1580 1581 1583 1586 1587 1591 1596 1599 1600 1604 1605 1607 1610 1611 1612 1613 1614 1615 1619 1625 1628 1629 1630 1631 1632 1636 1637 1638 1643 1645 1647 1648 1657 1659 1660 1661 1662 1664 1681 1689 1694 1699 1702 1703 1706 1707 1710 1712 1715 1719 1721 1722 1726 1732 1733 1740 1743 1747 1748 1749 1751 1752 1753 1755 1756 1757 1758 1759 1766 1767 1769 1775 1777 1778 1779 1780 1781 1782 1783 1786 1790 1794 1801 1802 1805 1806 1810 1811 1817 1819 1820 1822 1823 1825 1839 1840 1850 1857 1858 1860 1861 1865 1867 1874 1875 1879 1880 1881 1885 1887 1888 1889 1896 1899 1901 1903 1906 1907 1913 1914 1922 1924 1925 1926 1927 1928 1929 1930 1931 1934 1935 1936 1939 1940 1944 1947 1952 1955 1956 1957 1958 1961 1962 1964 1965 1967 1968 1971 1974 1975 1976 1977 1980 1982 1986 1988 1992 1996 2006 2009 2011 2012 2014 2015 2016 2020 2027 2028 2029 2030 2031 2034 2036 2038 2040 2042 2045 2046 2047 2049 2051 2054 2060 2062 2068 2074 2081 2082 2095 2097 2098 2104 2105 2109 2110 2114 2117 2121 2122 2126 2128 2132 2139 2145 2146 2153 2157 2159 2167 2168 2172 2173 2176 2179 2188 2193 2201 2202 2203 2207 2211 2216 2219 2221 2222 2234 2242 2243 2244 2245 2247 2248 2250 2257 2258 2262 2269 2277 2278 2279 2281 2290 2291 2299 2311 2317 2325 2343 2344 2346 2348 2352 2353 2356 2359 2360 2367 2369 2374 2384 2385 2388 2395 2398 2403 2405 2408 2413 2416 2424 2432 2440 2442 2443 2444 2449 2450 2456 2459 2462 2463 2468 2476 2479 2480 2483 2484 2485 2486 2488 2499 2507 2510 2511 2512 2520 2528 2530 2532 2537 2539 2542 2543 2544 2546 2547 2558 2568 2570 2583 2592 2595 2600 2604 2611 2616 2624 2626 2627 2637 2650 2661 2663 2671 2672 2673 2675 2683 2692 2693 2701 2721 2731 2772 2778 2782 2783 2784 2788 2791 2792 2793 2799 2805 2806 2810 2814 2815 2816 2823 2826 2828 2833 2851 2862 2864 2865 2872 2882 2883 2888 3030 3039 3171 3184 3187 3204 3240 3241 3242 3243 3244 3246 3250 3251 3252 3255 3256 3257 3258 3259 3261 3262 3263 3264 3265 3266 3267 3271 3272 3273 3274 3275 3276 3277 3278 3280 3281 3282 3283 3284 3285 3286 3287 3289 3290 3291 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3311 3314 3315 3316 3317 3318 3319 3321 3322 3323 3324 3325 3328 3332 3333 3334 3337 3338 3339 3340 3341 3343 3344 3345 3346 3347 3348 3349 3352 3353 3355 3356 3357 3360 3371 3373 3376 3377 3378 3382 3384 3385 3386 3389 3390 3391 3398 3400 3401 3403 3404 3405 3407 3409 3416 3417 3419 3421 3422 3431 3433 3436 3438 3439 3440 3442 3443 3444 3445 3446 3448 3453 3454 3455 3460 3461 3462 3463 3465 3471 3483 3486 3488 3493 3497 3499 3501 3503 3505 3506 3507 3508 3514 3515 3518 3520 3522 3528 3531 3532 3533 3535 3536 3537 3544 3546 3547 3548 3552 3554 3555 3557 3558 3559 3561 3562 3563 3564 3565 3566 3567 3568 3575 3576 3577 3583 3588 3589 3590 3591 3596 3597 3598 3600 3601 3605 3607 3616 3617 3618 3622 3623 3625 3635 3637 3644 3656 3657 3660 3667 3670 3671 3672 3674 3676 3689 3692 3695 3698 3699 3706 3708 3717 3720 3723 3727 3729 3731 3733 3734 3740 3744 3745 3751 3755 3760 3767 3769 3770 3772 3776 3778 3779 3780 3783 3784 3804 3805 3812 3817 3818 3820 3826 3828 3831 3841 3848 3852 3853 3860 3862 3869 3870 3871 3874 3877 3882)
{err}{hline 2}Break{hline 2}
{txt}{search r(1), local:r(1);}

end of do-file

{err}{hline 2}Break{hline 2}
{txt}{search r(1), local:r(1);}

{com}. do "/var/folders/yf/n6b7z0yx48x8dkcj4_g263_w0000gr/T//SD05133.000000"
{txt}
{com}. *****Sigman and Lindberg 2017*****
. *****Democracy for All*****
. **Replication for Table 11 in the Appendix**
. 
. **Version: July 2017**
. 
. clear
{txt}
{com}. use "v-dem_coder2.dta"
{txt}(Written by R.              )

{com}. set more off, permanently
{txt}({cmd:set more} preference recorded)

{com}. set matsize 11000
{txt}
{com}. log using "Table11", replace
{err}log file already open
{txt}{search r(604), local:r(604);}

end of do-file

{search r(604), local:r(604);}

{com}. 